const { defineConfig } = require('@vue/cli-service');
const { getThemeVariables } = require('ant-design-vue/dist/theme');
module.exports = defineConfig({
  publicPath: './',
  assetsDir: 'static',
  transpileDependencies: true,
  css: {
    loaderOptions: {
      css: {
        modules: {
          auto: true,
          localIdentName: '[name]_[local]__[hash:base64]',
        }
      },
      less: {
        lessOptions: {
          modifyVars: {
            ...getThemeVariables(),
          },
          javascriptEnabled: true
        },
      },
    },
  },
  devServer: {
    port: 81,
    client: {
      overlay: {
        runtimeErrors: false,
      },
    },
  },
})
